package com.demo.component;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;

/**
 * @program: spring-demo2
 * @author: JCM
 * @create: 2023-02-25 09:36
 * @description:
 **/
@Component
public class BComponent {
    @Autowired
    private CComponent cComponent;

    @PostConstruct
    public void postConstruct() {
        System.out.println("执行了 bComponent");
    }
}
